package com.kly.user.dto.chatter.response;

import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author linqu
 */
@Data
@Builder
public class UserLevelDto implements Serializable {

    private static final long serialVersionUID = -6910589751422101152L;

    private String userCode;

    private String modelUserCode;

    /**
     * 会话等级
     */
    private Integer chatLevel;


    private String nickName;

    private String avatarUrl;

    public static UserLevelDto toDto(String userCode, String modelUserCode, Integer chatLevel,String nickName, String avatarUrl) {
        return UserLevelDto.builder().userCode(userCode).modelUserCode(modelUserCode)
                .chatLevel(chatLevel).nickName(nickName).avatarUrl(avatarUrl).build();
    }

}
